import { axios } from '@/utils/request'

// 登陆
export function login (parameter) {
  return axios({
    url: '/auth/login',
    method: 'post',
    data: parameter
  })
}

export function getInfo () {
  return axios({
    url: '/api/user/info',
    method: 'get'
  })
}

export function logout () {
  return axios({
    url: '/auth/logout',
    method: 'post'
  })
}